import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    pageTitle: "",
    form: {
      password: "",
      user_id: "",
    },
  },
  getters: {
    getForm(state){
      return state.form
    }
  },
  mutations: {
    setTitle(state, title) {
      state.pageTitle = title
    },
    setLoginForm(state, form){
      state.form = form
    }
  },
  actions: {
  },
  modules: {
  }
})
